const mockdata = require('./mock/data.json');

module.exports={
  devServer: {
    port:4000,
    before(app){
      app.get('/api/goods',(req,res,next)=>{
        res.json(mockdata.goods);
      }),
      app.get('/api/sellers',(req,res,next)=>{
        res.json(mockdata.seller);
      })
      app.get('/api/ratings',(req,res,next)=>{
        res.json(mockdata.ratings);
      })
    }
  }
}